package com.iot.hmi.entity;

import javafx.beans.property.LongProperty;
import javafx.beans.property.SimpleLongProperty;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;

public class WeeklyDuration {
    private final SimpleStringProperty week = new SimpleStringProperty();
    private final SimpleLongProperty shutdownDuration = new SimpleLongProperty();
    private final SimpleLongProperty standbyDuration = new SimpleLongProperty();
    private final SimpleLongProperty loadDuration = new SimpleLongProperty();

    public WeeklyDuration(String week, Long shutdownDuration, Long standbyDuration, Long loadDuration) {
        setWeek(week);
        setShutdownDuration(shutdownDuration);
        setStandbyDuration(standbyDuration);
        setLoadDuration(loadDuration);
    }

    public String getWeek() {
        return week.get();
    }

    public void setWeek(String week) {
        this.week.set(week);
    }

    public StringProperty weekProperty() {
        return week;
    }

    public Long getShutdownDuration() {
        return shutdownDuration.get();
    }

    public void setShutdownDuration(Long shutdownDuration) {
        this.shutdownDuration.set(shutdownDuration);
    }

    public LongProperty shutdownDurationProperty() {
        return shutdownDuration;
    }

    public Long getStandbyDuration() {
        return standbyDuration.get();
    }

    public void setStandbyDuration(Long standbyDuration) {
        this.standbyDuration.set(standbyDuration);
    }

    public LongProperty standbyDurationProperty() {
        return standbyDuration;
    }

    public Long getLoadDuration() {
        return loadDuration.get();
    }

    public void setLoadDuration(Long loadDuration) {
        this.loadDuration.set(loadDuration);
    }

    public LongProperty loadDurationProperty() {
        return loadDuration;
    }
}
